projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee3be3f
)
Avoid an overflow error in emacs-module.c
author
Philipp Stephani
<phst@google.com>
Fri, 21 Sep 2018 20:00:14 +0000
(22:00 +0200)
committer
Philipp Stephani
<phst@google.com>
Fri, 21 Sep 2018 20:00:14 +0000
(22:00 +0200)
* src/emacs-module.c (Fmodule_load): Allow creating a bignum
to avoid overflow error
src/emacs-module.c
patch
|
blob
|
history
diff --git
a/src/emacs-module.c
b/src/emacs-module.c
index 1ecba8603ff9b3737c030547c013ae3e7146b1b9..0dcd7f0cc5aa92edff9ccca13dcbf47ea7af9e13 100644
(file)
--- a/
src/emacs-module.c
+++ b/
src/emacs-module.c
@@
-747,11
+747,7
@@
DEFUN ("module-load", Fmodule_load, Smodule_load, 1, 1, 0,
maybe_quit ();
if (r != 0)
- {
- if (FIXNUM_OVERFLOW_P (r))
- overflow_error ();
- xsignal2 (Qmodule_init_failed, file, make_fixnum (r));
- }
+ xsignal2 (Qmodule_init_failed, file, INT_TO_INTEGER (r));
module_signal_or_throw (&env_priv);
return unbind_to (count, Qt);